package com.soft.line;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan(basePackages = "com.soft.line.mapper")
@Slf4j
@ServletComponentScan
public class SoftlineFilesManageApplication extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(SoftlineFilesManageApplication.class);
	}

	public static void main(String[] args) {
		SpringApplication.run(SoftlineFilesManageApplication.class, args);
		log.info("--->SoftlineFilesManageApplication has already started<---");
	}

}
